{layout name="layout/default" /}
<div class="panel panel-default panel-intro">
    <div class="panel-heading"><div class="panel-lead"><em>{$nav_title.title}</em>{$nav_title.remark}</div></div>
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in">
                <div class="widget-body no-padding">
                <div class="bootstrap-table"><div class="fixed-table-toolbar"><div class="bs-bars pull-left"><div id="toolbar" class="toolbar">
                 <a href="javascript:;" data-name="添加字段" data-url="{:admin_url('admin/attribute/add',array('model'=>$model))}" class="btn btn-success btn-add btn-editone"><i class="fa fa-plus"></i> 添加</a> 
                  <span id="selectedChks" style="display:none">已选择<strong></strong>记录</span>
                    </div></div></div></div> 
                    <div class="fixed-table-container" style="padding-bottom: 0px;" id="contents">            
   <div class="fixed-table-body"> 
   <form class="ids">                
 <table id="table ids" class="table table-striped table-bordered table-hover" width="100%">
 
          <thead>
            <tr style="height:45px;">
              <th class="bs-checkbox" style="text-align:center;vertical-align: middle;"><input name="chkall" type="checkbox" id="chkall"></th>
              <th style="text-align:center;vertical-align: middle;"><a url="{eq name="orders" value="id desc"}{:admin_url('admin/attribute/index',array('type'=>'id','order'=>'asc'))}{else/}{:admin_url('admin/attribute/index',array('type'=>'id','order'=>'desc'))}{/eq}" class="btn-link sort ajax-url">编号</a></th>
              <th style="text-align:center;vertical-align: middle;">表单名</th>
              <th style="text-align:center;vertical-align: middle;">字段名</th>
              <th style="text-align:center;vertical-align: middle;">字段类型</th>
              <th style="text-align:center;vertical-align: middle;">字段长度</th>
              <th style="text-align:center;vertical-align: middle;">默认值</th>
              <th style="text-align:center;vertical-align: middle;">操作</th>
            </tr>
            </thead>
           <tbody>
               {volist name="list" id="vo"}
                <tr style="height:45px;">
                <td class="bs-checkbox" style="text-align:center;vertical-align: middle;"><input name="id[]" type="checkbox" value="{$vo['id']}" id="checkbox"></td>
                <td style="text-align:center;vertical-align: middle;">{$vo.id|default=''}</td>
                <td style="text-align:center;vertical-align: middle;">{$vo.title|default=''}</td>
                <td style="text-align:center;vertical-align: middle;">{$vo.name|default=''}</td>
                <td style="text-align:center;vertical-align: middle;">{$vo['type_text']|default=''}</td>
                <td style="text-align:center;vertical-align: middle;">{$vo['length']|default=''}</td>
                <td style="text-align:center;vertical-align: middle;">{$vo['value']|default=''}</td>                    
                <td style="text-align:center;vertical-align: middle;">
                            <a href="javascript:;" data-name="编辑字段" data-url="{:admin_url('admin/attribute/edit',array('id'=> $vo['id']))}" class="btn btn-success btn-editone btn-xs"><i class="fa fa-pencil"></i> 编辑</a>
							<a url="{:admin_url('admin/attribute/del',array('id'=> $vo['id']))}" class="confirm btn btn-danger btn-xs confirm ajax-get"><i class="fa fa-trash-o"></i> 删除</a>
                            </td>
              </tr>
                 {/volist}             
          </tbody>
        </table>
   </form>
                    </div>
<div class="fixed-table-pagination" style="overflow:hidden"><div class="pull-left pagination-detail"><span class="pagination-info">共{$list->total()}条 {$list->currentPage()}/{$list->lastPage()} </span><span class="page-list">每页显示 {$list->listRows()} 条</span></div><div class="pull-right pagination"><ul class="pagination">{$page}</ul></div></div>                
                    </div>
                    </div>
                    <div class="clearfix"></div>
                </div>
            </div>
            </div>
    </div>
</div>